package com.example.questionexam.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;


@TableName(value ="paper")
@Data
public class Paper implements Serializable {



    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    /**
     * json
     * [{"id":id_value,"score:":sc_value},
     * {"id":id_value1,"score:":sc_value1},{},{}]
     *
     * {id,score}{id,score}
     * {id,score},{id1,score1}
     * class QuestionScore
     */
    // List<String> questions
    //private QuestionScore[] questionScores;
    private String questions;


    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
